<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <script src="http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js">
    </script>
    </script>
</head>

<body>
    <script>
        var app = angular.module('myApp', []);
        app.controller('siteCtrl', function ($scope, $http) {
            $http.get("http://www.data/sites.php")
                .then(function (response) { 
                    $scope.names = response.data.sites; 
                });
        });
    </script>
</body>

</html>